package com.ququ.syb.commission.fegin;

import com.ququ.common.result.Result;
import com.ququ.syb.common.pojo.PayChannel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "channel-business")
public interface PayChannelFegin {

    @RequestMapping(value = "/query")
    Result<PayChannel> getPayChannel(@RequestParam(value = "paychannelid") String paychannelid);

    @RequestMapping(value = "/query")
    Result<PayChannel> getPayChannel(@RequestParam(value = "paychannelid") String paychannelid,
                                     @RequestParam(value = "accountid") String accountid,
                                     @RequestParam(value = "appcode") String appcode);
}
